package com.nodecollege.cloud.dao.mapper;

import com.nodecollege.cloud.common.model.po.UpmsApiVisit;
import com.nodecollege.cloud.common.model.vo.ApiVisitQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 版权：节点学院
 * <p>
 * UpmsInterfaceVisitMapper
 *
 * @author LC
 * @date 2019-12-20 18:22:52
 */
@Mapper
@Component
public interface UpmsApiVisitMapper {
    /**
     * 根据主键删除数据
     * @param interfaceVisitId Integer
     * @return int
     */
    int deleteByPrimaryKey(Long interfaceVisitId);

    /**
     * 插入数据库记录（不建议使用）
     * @param record UpmsInterfaceVisit
     * @return int
     */
    int insert(UpmsApiVisit record);

    /**
     * 根据主键id查询
     * @param interfaceVisitId Integer
     * @return UpmsInterfaceVisit
     */
    UpmsApiVisit selectByPrimaryKey(Long interfaceVisitId);

    /**
     * 查询接口访问列表
     * @param apiVisitQuery
     * @return
     */
    List<UpmsApiVisit> selectApiVisitList(ApiVisitQuery apiVisitQuery);
}